Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the inconsistency of invitation_msg_id between invitation and response #1564

Merged
merged 3 commits into from
Dec 20, 2021

Conversation

baegjae
Copy link
Contributor

@baegjae baegjae commented Dec 17, 2021

Hi!
This PR fixes the inconsistency of invitation_msg_id between invitation and response when connection is reused.

example of problem

receive-invitation with invitation
{"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/out-of-band/1.0/invitation", "@id": "6ccba5e9-2b8d-4071-bd91-0058d5187d79", "services": ["did:sov:2ACCk6nnJQmaibXp5yiXZA"], ...

The response of receive-invitation
{"my_did": "VrN5qwVB7ewV43C679ekUx", "invitation_msg_id": "a7753007-5e3f-4583-826b-ae94550fed15", "their_public_did": "2ACCk6nnJQmaibXp5yiXZA", ...

solution

Fetch the connection record after reuse handshake.

Thanks!

Signed-off-by: Ethan Sung [email protected]

@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2021

Codecov Report

Merging #1564 (8233fef) into main (bdd625b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1564   +/-   ##
=======================================
  Coverage   95.75%   95.75%           
=======================================
  Files         527      527           
  Lines       32308    32309    +1     
=======================================
+ Hits        30938    30939    +1     
  Misses       1370     1370           

Copy link
Contributor

@shaangill025 shaangill025 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirm that it fixes the inconsistency with invitation_msg_id in the recieve_invitation response.

@ianco ianco merged commit be0f462 into openwallet-foundation:main Dec 20, 2021
@baegjae baegjae deleted the fetch-conn-record branch December 23, 2021 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants